package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.YkckProductBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface YkckProductService extends BaseService<YkckProductBean> {

	YkckProductBean getYkckProductBeanById(String id) throws Exception;
	
	void removeYkckProductBeanById(String id) throws Exception;
	
	void removeYkckProductBeanByIds(String ids) throws Exception;
	
	YkckProductBean saveYkckProductBean(YkckProductBean crm) throws Exception;
	
	YkckProductBean updateYkckProductBean(YkckProductBean crm) throws Exception;
	
	Page<YkckProductBean>  findYkckProductBeanByCond(YkckProductBean bean,
			Page<YkckProductBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveYkckProductBeanExt(String sql) throws Exception;

	String findYkckProductBeanExtCreate(String tableName) throws Exception;

	String findYkckProductBeanExtEdit(String tableName, String id)
			throws Exception;

	String findYkckProductBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasYkckProductBeanExtData(String tableName, String id)
			throws Exception;
}